package com.hlhj.carview.adapter

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hlhj.carview.LoadtNet
import com.hlhj.carview.R
import com.hlhj.carview.bean.ArticalBean

/**
 *NeverMore
 *2020/9/14
 **/
class ArticalListAdp(private val datas:ArrayList<ArticalBean.Data>):BaseQuickAdapter<ArticalBean.Data,BaseViewHolder>(R.layout.news_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: ArticalBean.Data?) {
        helper?.getView<ImageView>(R.id.itemImg)?.LoadtNet(item?.thumb?:"")
        helper?.setText(R.id.itemTitle,item?.name)
        helper?.setText(R.id.itemTime,item?.time)
        helper?.setText(R.id.itemDes,item?.des)

    }
}